import request from "@/utils/request"

export default
{
  /**
   * 多条件查询活动列表
   * @param current
   * @param limit
   * @param actQuery
   */
  pageActCondition(current,limit,actQuery)
  {
    return request
    ({
      method:"POST",

      url:`/act/pageActCondition/${current}/${limit}`,

      data: actQuery
    })
  },

  /**
   * 通过活动id逻辑删除活动
   * @param id
   */
  delActById(id)
  {
    return request
    ({
      method:"DELETE",

      url:`/act/delete/${id}`
    })
  },

  /**
   * 添加活动
   * @param act
   */
  addAct(act)
  {
    return request
    ({
      method:"POST",

      url:'/act/addAct',

      data:act
    })
  },

  /**
   * 修改活动
   * @param act
   */
  updateAct(act)
  {
    return request
    ({
      method:"POST",

      url:'/act/update',

      data:act
    })
  },
}
